package com.biz.primus.base.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collections;
import java.util.List;

/**
 * @author yanweijin
 * @date 2017/9/14
 */
@Data
@AllArgsConstructor(staticName = "of")
@NoArgsConstructor
public class PageResult<T> {

    private int currentPage = 1;

    private int totalPage = 1;

    private List<T> content = Collections.emptyList();

    public Boolean hasNext() {
        return currentPage < totalPage;
    }
}
